   // plugins/element-plus.js
   import { defineNuxtPlugin } from '#app';
   import ElementPlus from 'element-plus';
   import 'element-plus/dist/index.css';
   import zhCn from 'element-plus/es/locale/lang/zh-cn'
   import * as Icons from '@element-plus/icons-vue'

   export default defineNuxtPlugin((nuxtApp) => {
     nuxtApp.vueApp.use(ElementPlus,{
      locale: zhCn,
    });
     Object.keys(Icons).forEach((key) => {
      nuxtApp.vueApp.component(key, Icons[key])
  })
   });